package com.kxmall.categorize.domain.bo;

import com.kxmall.common.core.domain.BaseEntity;
import com.kxmall.common.core.validate.AddGroup;
import com.kxmall.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 废品分类信息业务对象 hs_waste_categorize
 *
 * @author kxmall
 * @date 2023-11-21
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class HsWasteCategorizeBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 分类名
     */
    @NotBlank(message = "分类名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;
    /**
     * 价格
     */
    private BigDecimal price;
    /**
     * 计量单位
     */
    private String unit;
    /**
     * 计量类型，0重量，1数量
     */
    private Long countType;
    /**
     * 价格类型，0固定价格，1可议价
     */
    private Long priceType;

    /**
     * 分类图标url
     */
    @NotBlank(message = "分类图标url不能为空", groups = { AddGroup.class, EditGroup.class })
    private String imgUrl;

    /**
     * 上级分类id,0代表无上级
     */
    @NotNull(message = "上级分类id,0代表无上级不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentId;

    /**
     * 0正常，1删除
     */
//    @NotNull(message = "0正常，1删除不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deleteFlag;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;


}
